summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2011-09-12 09:56:20 +0000
committerJason Woodward2011-09-12 09:56:20 +0000
commitd8f5f593c5813a86594ab63d272bda3fd293f99b (patch)
tree8c4ba066c4177c4b5b4b1f67e730f82b2e9c1f78
parentd6a07582e9f443f697706d925d513a3dee241946 (diff)
downloadgslapt-d8f5f593c5813a86594ab63d272bda3fd293f99b.tar.gz
Do not try and free const char error message
[src/callbacks.c:1573]: (error) Mismatching allocation and deallocation: err
-rw-r--r--src/callbacks.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/callbacks.c b/src/callbacks.c
index 6e4b56a..0b55d06 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -1554,7 +1554,7 @@ static void lhandle_transaction (GtkWidget *w)
/* download the pkgs */
if ( trans->install_pkgs->pkg_count > 0 || trans->upgrade_pkgs->pkg_count > 0 ) {
- char *err = download_packages();
+ const char *err = download_packages();
if ( err != NULL || _cancelled == 1) {
gdk_threads_enter();
@@ -1569,12 +1569,9 @@ static void lhandle_transaction (GtkWidget *w)
_cancelled = 0;
G_UNLOCK(_cancelled);
}
- if (err != NULL) {
- free(err);
- }
-
return;
}
+
}
/* return early if download_only is set */